﻿@model string[]

@{
    var controller = ViewData.ModelMetadata.AdditionalValues["Controller"] as string;
}

@for (var i = 0; i < Model.Length; i++)
{
    var item = Model[i];
    if (i != 0)
    {<text> , </text>}
    @Html.ActionLink(item, "Detail", controller, new { name = item }, null)
}